package org.duiduo.common.bean.req;

import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author liangze
 */
@Data
@Schema(description = "分页请求基类")
public class BaseRequest {

    /**
     * 当前页码
     */
    @Schema(description = "当前页码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer currentPage = 1;

    /**
     * 每页分几条
     */
    @Schema(description = "每页分几条", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer size = 10;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }

}
